﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Simple.Services.System
{
    public class MedicationRegisterPageInput : PageInputModel
    {
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? StartTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? EndTime { get; set; }

        /// <summary>
        /// 班级
        /// </summary>
        public Guid? ClassId { get; set; }
    }

    public class RegisterInput : ModelBase
    {
        public Guid? Id { get; set; }

        /// <summary>
        /// 药物名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 说明
        /// </summary>
        public string? Explain { get; set; }

        /// <summary>
        /// 服药时间
        /// </summary>
        public DateTime MedicationTime { get; set; }

        /// <summary>
        /// 图片id
        /// </summary>
        public List<Guid>? ImageIdList { get; set; }

        /// <summary>
        /// 签名
        /// </summary>
        public string? AutographImg { get; set; }

        public override void ConfigureMapper(Profile profile)
        {

            profile.CreateMap<RegisterInput, MedicationRegister>();

        }
    }

    public class RejectInput
    {
        public Guid Id { get; set; }
        public string? RejectReason { get; set; }
    }
}
